<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="entity.Dept,java.util.*"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="Bookmark" href="/favicon.ico" >
<link rel="Shortcut Icon" href="/favicon.icso" />

<link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/H-ui.admin.css" />

<title>部门管理列表</title>
</head>

<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 薪资管理 <span class="c-gray en">&gt;</span>查看员工薪资</nav>
<div class="page-container" style="margin-left:35%">
     <form action="SearchEmployeeSalaryServlet" method="post">
		<input type="text" class="input-text" style="width:250px" placeholder="输入员工ID" id="" name="empId">
		<button type="submit" class="btn btn-success" id="" name=""><i class="Hui-iconfont">&#xe665;</i>搜索</button>
     </form>
</div>
<div id="content" style="backgraoud-color:white;color:black;" >

</div>
	<table class="table table-border table-bordered table-bg" id="test_table">
		<thead>
			<tr>
				<th scope="col" colspan="13">员工工资列表</th>
			</tr>
			<tr class="text-c">
				<th width="25">
				<th width="40">ID</th>
				<th width="90">员工ID</th>
				<th width="90">岗位工资</th>
				<th width="90">薪级工资</th>
				<th width="90">职务工资</th>
				<th width="90">绩效工资</th>
				<th width="90">惩罚扣薪</th>
				<th width="90">应发工资</th>
				<th width="90">个人所得税</th>
				<th width="90">实发工资</th>
				<th width="90">发放时间</th>
				<th width="90">操作</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${salary }" var="s">
			<tr class="text-c">
				<td><input type="checkbox" value="${s.id }" name="check"></td>
				<td>${s.id }</td>
				<td>${s.empId }</td>
				<td>${s.positionSal }</td>
				<td>${s.xinjiSal }</td>
				<td>${s.zhiwuSal }</td>
				<td>${s.jixiaoSal }</td>
				<td>${s.punishSal }</td>
				<td>${s.allSal }</td>
				<td>${s.privateDuty }</td>
				<td>${s.factSal }</td>
				<td>${s.provideDate }</td>
				<td class="td-manage">
				<input type="button" onclick="salary_provide(${s.empId })" value="发放" />
				</td>
			</tr>
			</c:forEach>
		</tbody>
	</table>
	
<script type="text/javascript">

//发放
function salary_provide(id){
	location.href="ProvideSalaryServlet?id="+id;
}

</script>
</body>
</html>